package cn.lysj.framework.foodv2.domain;

import cn.lysj.framework.base.BaseEntity;
import cn.lysj.framework.common.validate.annotation.Min;
import cn.lysj.framework.common.validate.annotation.NotBlank;
import cn.lysj.framework.common.validate.annotation.NotNull;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.persistence.Entity;

/**
 * @author drj
 * @description 菜品品类
 * @create 2018-11-09 11:21:07
 **/
@Data
@Entity
@EqualsAndHashCode(callSuper=true)
public class FoodType extends BaseEntity {
    @NotBlank(message = "请填写品类名称")
    private String name;
    private String storeId;//门店id
    @NotNull(message = "排序值不能为空")
    @Min(message = "排序值必须大于0",equal = false)
    private Integer rank;//排序值
    private Integer priority;//优先级用于订单打印时顺序： 1.食品 2.酒水饮料
}